import { useMainStore } from '@/store'

export function useCount() {
  const { count, increment } = useMainStore()

  function handleClick() {
    increment()
  }

  return {
    count,
    handleClick
  }
}
